package com.example.room_type.mapper;


import com.example.model.room_type.PriceRule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PriceRuleMapper {

    List<PriceRule> getPriceRuleByRoomType(Long roomTypeId);

    PriceRule getPriceRuleAtPresent(@Param("roomTypeId") Long roomTypeId);

    PriceRule get(Long id);

    List<PriceRule> list(PriceRule priceRule);

    int insert(PriceRule priceRule);

    int update(PriceRule priceRule);

    int delete(Long id);

}
